<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/5/19
 * Time: 18:20
 */

namespace DesignPatterns\Structure\Flyweight;

/**
 * 共享的具体享元类
 * Class ConcreteFlyweight
 * @package DesignPatterns\Structure\Flyweight
 */
class ConcreteFlyweight extends Flyweight
{
    public function show($content)
    {
        echo '共享的享元：' . $this->name . '- ' . $content . "\n";
    }
}